<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnRepairTaskIdInTaskRepairOrderTable extends AbstractMigration
{

    public function up()
    {
        $this->table('task_repair_order')
            ->addColumn('repair_task_id', 'integer', [
                'limit' => 11,
                'null' => false,
                'default' => 0,
                'signed' => false,
                'comment' => '返修任务id',
            ])->save();
    }

    public function down()
    {
        $this->table('task_repair_order')
            ->removeColumn('repair_task_id')
            ->save();
    }
}
